﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace PTA.NET
{
    public class ImageButton : System.Windows.Forms.PictureBox
    //public class ImageButton : DevExpress.XtraEditors.PictureEdit
    {

        protected override void OnMouseEnter(EventArgs e)
        {

            base.OnMouseEnter(e);
            this.Size = new System.Drawing.Size(this.Size.Width + 10, this.Size.Height + 10);
            this.Location = new Point(this.Location.X - 5, this.Location.Y - 5);
            //this.BorderStyle = System.Windows.Forms.BorderStyle.None;

        }

        protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);
            this.Size = new System.Drawing.Size(this.Size.Width - 10, this.Size.Height - 10);
            this.Location = new Point(this.Location.X + 5, this.Location.Y + 5);
            //this.BorderStyle = System.Windows.Forms.BorderStyle.None;
        }
    }
}
